<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="com.cb.domain.service.bbase.CategoryManager"%>
<%@page import="com.cb.core.util.AppUtil"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src=""></script>
</head>

<body>
	<%
		CategoryManager categoryManager=(CategoryManager)AppUtil.getById("categoryManager");
		List list=categoryManager.getByParentId(null);
		request.setAttribute("categoryList",list);
	%>
	<div>
		
		<ul>
				<li><h5 style="background:#B9B8B8;text-align:left;">&nbsp;&nbsp;&nbsp;&nbsp;商品分类</h5></li>
				<li>
				
					<c:if test="${not empty categoryList}">
						<c:forEach items="${categoryList}" var="first">
							<!--  <a id="${first.categoryId}" onclick="javascript:window.opener.location.href= '/taoletao/front/bbase/productSearch.do?categoryId=${first.categoryId}';window.close();" href="#">${first.categoryName}</a><br/>-->
							<a id="${first.categoryId}" href="/taoletao/front/bbase/productSearch.do?categoryId=${first.categoryId}">${first.categoryName}</a><br/>
						</c:forEach>
					</c:if>
				</li>
			</ul>
	</div>
</body>
</html>